package com.yoake.campus.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yoake.common.annotation.Excel;
import com.yoake.common.core.domain.BaseEntity;

/**
 * 评论管理对象 campus_comment
 * 
 * @author yoake
 * @date 2024-12-22
 */
public class CampusComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论主键 */
    private Long commentId;

    /** 上级id */
    @Excel(name = "上级id")
    private Long parentId;

    /** 所属的一级评论id */
    @Excel(name = "所属的一级评论id")
    private Long oneLevelId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 所回复目标评论的用户id */
    @Excel(name = "所回复目标评论的用户id")
    private Long toUserId;

    /** 内容id */
    @Excel(name = "内容id")
    private Long contentId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String coContent;

    /** 评论时的ip */
    @Excel(name = "评论时的ip")
    private String ip;

    /** 评论时的地址 */
    @Excel(name = "评论时的地址")
    private String address;

    /** 逻辑删除(1:已删除，0:未删除) */
    private Integer delFlag;

    /** 创建人 */
    private Long createUser;

    /** 更新人 */
    private Long updateUser;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setOneLevelId(Long oneLevelId) 
    {
        this.oneLevelId = oneLevelId;
    }

    public Long getOneLevelId() 
    {
        return oneLevelId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setToUserId(Long toUserId) 
    {
        this.toUserId = toUserId;
    }

    public Long getToUserId() 
    {
        return toUserId;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setCoContent(String coContent) 
    {
        this.coContent = coContent;
    }

    public String getCoContent() 
    {
        return coContent;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("parentId", getParentId())
            .append("oneLevelId", getOneLevelId())
            .append("userId", getUserId())
            .append("toUserId", getToUserId())
            .append("contentId", getContentId())
            .append("coContent", getCoContent())
            .append("ip", getIp())
            .append("address", getAddress())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .toString();
    }
}
